inspector: Limit the width of readonly properties
authorMatthias Clasen <mclasen@redhat.com>
Tue, 17 Nov 2020 18:33:59 +0000 (13:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 17 Nov 2020 18:36:57 +0000 (13:36 -0500)
commit34d547a2aa0d9031108489b8358e806605038011
tree94b716de9532b1ee7160451e241f80c174d06a37
parent714e5c72f6782191937c94a7cb7b6b750bd1ff5b
inspector: Limit the width of readonly properties

For readonly properties, we show the serialized value
in a label. If we don't take precautions, this can cause
our window to grow extremely wide, and break things.
So, ellipsize things at a reasonable size.

Fixes: #3278
gtk/inspector/prop-editor.c